<?php session_start();
//borro cookies
$cookies = explode(';', $_SERVER['HTTP_COOKIE']);
foreach($cookies as $cookie) {
	$parts = explode('=', $cookie);
	$name = trim($parts[0]);
	setcookie($name, '', time()-1000);
	setcookie($name, '', time()-1000, '/');
	setcookie($name, '', time()-1000, '/', 'kalender.com.ar');
}
//elimino session
session_destroy();

//variables de servidor para redireccionar
$host  = $_SERVER['HTTP_HOST'];

// me voy al index
header("Location: http://$host/index.php?auto=0");	
?>